package com.booksys.examination.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @author Administrator
 * @date 2019-08-13 9:50
 *
 * `book_id` int(10) NOT NULL AUTO_INCREMENT,
 *   `book_name` varchar(50) NOT NULL,
 *   `book_code` varchar(50) NOT NULL,
 *   `book_type` int(2) NOT NULL,
 *   `book_author` varchar(10) NOT NULL,
 *   `publish_press` varchar(20) NOT NULL,
 *   `publish_date` datetime(6) NOT NULL,
 *   `is_borrow` int(2) NOT NULL DEFAULT '0',
 *   `book_price` decimal(10,2) NOT NULL,
 *   `creater` varchar(20) NOT NULL,
 *   `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
 *   `last_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
 */
public class BookInfo implements Serializable {
    private Integer bookId;
    private String bookName;
    private String booKCode;
    private Integer bookType;
    private String bookAuthor;
    private String publishPress;
    private Date publishDate;
    private Integer isBorrow;
    private Double bookPrice;
    private String creater;
    private Date createTime;
    private Date lastTime;

    public Integer getBookId() {
        return bookId;
    }

    public void setBookId(Integer bookId) {
        this.bookId = bookId;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getBooKCode() {
        return booKCode;
    }

    public void setBooKCode(String booKCode) {
        this.booKCode = booKCode;
    }

    public Integer getBookType() {
        return bookType;
    }

    public void setBookType(Integer bookType) {
        this.bookType = bookType;
    }

    public String getBookAuthor() {
        return bookAuthor;
    }

    public void setBookAuthor(String bookAuthor) {
        this.bookAuthor = bookAuthor;
    }

    public String getPublishPress() {
        return publishPress;
    }

    public void setPublishPress(String publishPress) {
        this.publishPress = publishPress;
    }

    public Date getPublishDate() {
        return publishDate;
    }

    public void setPublishDate(Date publishDate) {
        this.publishDate = publishDate;
    }

    public Integer getIsBorrow() {
        return isBorrow;
    }

    public void setIsBorrow(Integer isBorrow) {
        this.isBorrow = isBorrow;
    }

    public Double getBookPrice() {
        return bookPrice;
    }

    public void setBookPrice(Double bookPrice) {
        this.bookPrice = bookPrice;
    }

    public String getCreater() {
        return creater;
    }

    public void setCreater(String creater) {
        this.creater = creater;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getLastTime() {
        return lastTime;
    }

    public void setLastTime(Date lastTime) {
        this.lastTime = lastTime;
    }

    @Override
    public String toString() {
        return "BookInfo{" +
                "bookId=" + bookId +
                ", bookName='" + bookName + '\'' +
                ", booKCode='" + booKCode + '\'' +
                ", bookType=" + bookType +
                ", bookAuthor='" + bookAuthor + '\'' +
                ", publishPress='" + publishPress + '\'' +
                ", publishDate=" + publishDate +
                ", isBorrow=" + isBorrow +
                ", bookPrice=" + bookPrice +
                ", creater='" + creater + '\'' +
                ", createTime=" + createTime +
                ", lastTime=" + lastTime +
                '}';
    }
}
